package com.msmall.community.user.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.user.model.LoginInfo;
import com.msmall.community.user.model.UserProfile;
import com.msmall.community.user.model.UserSetting;

public interface UserDao extends BaseDao{

	public UserProfile loadProfileByUserid(Long userid) throws Exception;
	
	public LoginInfo loadLastLoginInfo(Long userid) throws Exception;
	
	/**
	 * 获得用户的所有设置信息等
	 * @param userid
	 * @return
	 */
	public List<UserSetting> getSettingByUserid(Long userid)throws Exception;
	/**
	 * key : ConstantDB.USER_SETTING_KEY_
	 */
	public UserSetting getSetting(Long userid, String key)throws Exception;
}
